function formatImg(html) {
	var newContent = html.replace(/<img[^>]*>/gi, function(match, capture) {
		var match = match.replace(/style\s*?=\s*?(['"])[\s\S]*?\1/gi, ' ');
		return match;
	});
	return newContent;
}

let appImg = (val) => { 
	return val;
	if(!val){
		return '';
	}
	// #ifndef H5
	if (val) {
		var a = formatImg(val);
		return a.replace(/\<img/gi, '<img style="max-width:100%;height:auto;display:block;"');	
	}
	// #endif
	
	var reg = /<img(.*?)src="(.*?)"(.*?)>/g;
	val = val.replace(reg,'<img$1src="$2?imageslim"$3>').replace(/<\/?p[^>]*>/gi,''); //由于后台有的没返回?imageslim
	return val; 
}
export { 
	appImg
}
